package com.tuanzi.loan.business.repository.receipt.statistics.custom;

import com.tuanzi.loan.vo.view.receipt.statistics.ReceiptBalanceOperationRecordView;

import java.util.Date;
import java.util.List;

/**
 * @author lsx
 */
public interface ReceiptBalanceOperationRecordRepositoryCustom {
   /**
    * 取得当前用户的一些借条操作记录统计信息
    * @param userId
    * @return
    */
   ReceiptBalanceOperationRecordView findOperationRecordViewByUserId(String userId, Date startTime, Date endTime);

   List<ReceiptBalanceOperationRecordView> findRecordResponseSourceFromByUserId(String userId, Date startTime, Date endTime);

   Long findSettleAmountByProductIdAndSourceFrom(Long productId, Integer sourceFrom, Date startTime, Date endTime);

}
